/*
 * CompresorUtil.cpp
 *
 *  Created on: 27/11/2009
 *      Author: ngonzalez
 */

#include "CompresorUtil.h"

unsigned int CompresorUtil::calculateLength(unsigned int floor,unsigned int roof){
	return roof - floor;
}

double CompresorUtil::calculateNewFloor(unsigned int roof){
	return roof;
}

double CompresorUtil::calculateNewRoof(long double probability,unsigned int length){
	return (length*probability) + probability;
}


double CompresorUtil::calculateAcummulateProbability(double length, int numero){


	double resultado;

	double numeroAux = numero;

	resultado = numeroAux/ (length +1);

	return resultado;


}
